package com.sz.biz;

import com.sz.common.core.service.role.IRoleMemberService;
import com.sz.common.core.service.role.RoleMembership;
import com.sz.common.core.system.entity.Role;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Function: MockRoleMemberService <br>
 * Author: Charles <br>
 * Date: 2017-01-22 15:43:00
 */
@Service
public class MockRoleMemberService implements IRoleMemberService {
    @Override
    public String getMembershipTypeName() {
        return "MockRoleMemberType";
    }

    @Override
    public boolean isMembershipAcceptable(RoleMembership membership) {
        return true;
    }

    @Override
    public void assignRoleMembers(int roleId, List<RoleMembership> members) {

    }

    @Override
    public void removeRoleMembers(int roleId, List<RoleMembership> members) {

    }

    @Override
    public List<Role> getRolesByMember(RoleMembership member) {
        return null;
    }
}
